package com.len.service.impl;

import com.len.base.BaseMapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.TProductDemand;
import com.len.mapper.ProductDemandMapper;
import com.len.service.ProductDemandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductDemandServiceImpl extends BaseServiceImpl<TProductDemand,String> implements
        ProductDemandService {
    @Autowired
    private ProductDemandMapper productDemandMapper;
    @Override
    public BaseMapper<TProductDemand, String> getMappser() {
        return productDemandMapper;
    }

    public List<TProductDemand> selectAllByOrderNo(String orderNo){
        return productDemandMapper.selectAllByOrderNo(orderNo);
    }

    @Override
    public void delAllByOrderNo(String orderNo) {
        productDemandMapper.delAllByOrderNo(orderNo);
    }

    public List<TProductDemand> selectListByOrderNo(String orderNo){
        return productDemandMapper.selectListByOrderNo(orderNo);
    }
}
